package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author shuiyun
 * @description 终端注册应答
 * @date 2022-04-20 00:08
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Message(JT808.终端注册应答0x8100)
public class T8100 extends JTMessage {

    @FieldValue(type = DataType.WORD, desc = "应答流水号")
    private int serialNo;

    @FieldValue(type = DataType.BYTE, desc = "结果")
    private int resultCode;

    @FieldValue(type = DataType.STRING, desc = "鉴权码")
    private String token;
}
